package wangxiaotao.bean.vo;

import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserVO implements Serializable {

    private Integer id;

    @NotBlank(message = "姓名未填写")
    private String name;

    @NotBlank(message = "用户名未填写")
    private String username;

    private String avatar;

    private Boolean gender;

    @NotBlank(message = "电话未填写")
    private String phone;

    @NotBlank(message = "邮件未填写")
    @Email
    private String email;

    @NotBlank(message = "地址未填写")
    private String address;

    private Boolean statue;

    //创建时间
    private LocalDateTime createTime;
}
